export default function(sequelize, DataTypes) {
  return sequelize.define('gupiao_list', {
    gupiao_id: {
      type: DataTypes.STRING(10),
      allowNull: false,
      primaryKey: true,
      comment: "股票编号"
    },
    gupiao_price: {
      type: DataTypes.FLOAT,
      allowNull: true,
      comment: "股票价格"
    },
    gupiao_name: {
      type: DataTypes.STRING(20),
      allowNull: true,
      comment: "股票名称"
    }
  }, {
    sequelize,
    tableName: 'gupiao_list',
    timestamps: false,
    indexes: [
      {
        name: "PRIMARY",
        unique: true,
        using: "BTREE",
        fields: [
          { name: "gupiao_id" },
        ]
      },
    ]
  });
};
